<?php
/**
 * Created by PhpStorm.
 * User: cape
 * Date: 2017/10/11
 * Time: 12:51
 */


$ref = 0;
$row = & $ref;
foreach(array(1,2,3) as $row){

}

echo $ref;
echo "\n";


$a = 1;
$b  = array(2,3);
$arr = array(&$a, &$b[0], &$b[1]);
$arr[0]++; $arr[1]++; $arr[2]++;
echo "$a";
echo "\n";
var_dump($b);





























